home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C / Code Resources / Jims CDEFs 1.50 / demo Source ƒ / demoButtons.r < prev    next >
Encoding:
Text File  |  1995-10-27  |  3.8 KB  |  186 lines  |  [TEXT/KAHL]

  1. // -----------------------------------------------------------------------------
  2. //    File    : demoButtons.r
  3. //    Date    : June 18, 1995
  4. //    Author    : Jim Stout
  5. //    Purpose    : show use of 'cctb' resource to colorize push buttons
  6. //            :
  7. // -----------------------------------------------------------------------------
  8. #define REZ                                    // Think 6 - see jimsCDEF.h
  9. #define SystemSevenOrLater 1
  10. #include <Types.r> 
  11. #include "jimscdef.h"
  12.  
  13. resource 'dctb' (220, "Color 3D Buttons", purgeable) {
  14.     {
  15.         /* [1] */    wContentColor, 61166, 61166, 61166,
  16.         /* [2] */    wFrameColor, 0, 0, 0,
  17.         /* [3] */    wTextColor, 0, 0, 0
  18.     }
  19. };
  20.  
  21. resource 'DLOG' (220, "Color 3D Buttons", purgeable) {
  22.     {44, 10, 255, 200},    movableDBoxProc,    invisible,    nogoAway,    
  23.     0x0,    
  24.     220,    
  25.     "Color 3D Buttons"
  26. #if SystemSevenOrLater
  27.     , centerMainScreen
  28. #endif
  29. };
  30.  
  31. resource 'DITL' (220, "Color 3D Buttons", purgeable) {
  32.     {
  33.         /* [1] */    {178, 117, 198, 177},    Control        { enabled,    221        },
  34.         /* [2] */    {10, 1300, 30, 1360},     Button    { enabled, "\Hidden"},    // offscreen
  35.         /* [3] */    {178, 44, 198, 104},    Control        { enabled,    222        },
  36.         
  37.         /* [4] */    {10, 10, 30, 70},        Control        { enabled,    223        },
  38.         /* [5] */    {40, 10, 60, 70},        Control        { enabled,    224        },
  39.         /* [6] */    {70, 10, 90, 70},        Control        { enabled,    225        },
  40.         /* [7] */    {10, 120, 30, 180},        Control        { enabled,    226        },
  41.         /* [8] */    {40, 120, 60, 180},        Control        { enabled,    227        },
  42.         /* [9] */    {70, 120, 90, 180},        Control        { enabled,    228        },
  43.         
  44.         /* [10] */    {100, 10, 116, 180},    Control        { enabled,    229        },
  45.         /* [11] */    {126, 10, 142, 180},    Control        { enabled,    230        },
  46.         /* [12] */    {152, 10, 168, 180},    Control        { enabled,    231        },
  47.  
  48.     }
  49. };
  50.  
  51. resource 'CNTL' (221, purgeable) {
  52.     {178, 117, 198, 177},    0,
  53.     visible,    1,        0,    
  54.     16*button3D,
  55.     0,
  56.     "OK"
  57. };
  58.  
  59. resource 'CNTL' (222, purgeable) {
  60.     {178, 44, 198, 104},    0,
  61.     visible,    1,        0,    
  62.     16*button3D,
  63.     0,
  64.     "Disable"
  65. };
  66.  
  67. resource 'CNTL' (223, purgeable) {
  68.     {10, 10, 30, 70},    0,
  69.     visible,    1,        0,    
  70.     16*button3D+useWFont,
  71.     0,
  72.     "Blue"
  73. };
  74.  
  75. resource 'CNTL' (224, purgeable) {
  76.     {40, 10, 60, 70},    0,
  77.     visible,    1,        0,    
  78.     16*button3D,
  79.     0,
  80.     "Red"
  81. };
  82.  
  83. resource 'CNTL' (225, purgeable) {
  84.     {70, 10, 90, 70},    0,
  85.     visible,    1,        0,    
  86.     16*button3D,
  87.     0,
  88.     "Green"
  89. };
  90.  
  91. resource 'CNTL' (226, purgeable) {
  92.     {10, 120, 30, 180},    0,
  93.     visible,    1,        0,    
  94.     16*button3D,
  95.     0,
  96.     "Purple"
  97. };
  98.  
  99. resource 'CNTL' (227, purgeable) {
  100.     {40, 120, 60, 180},    0,
  101.     visible,    1,        0,    
  102.     16*button3D,
  103.     0,
  104.     "Orange"
  105. };
  106.  
  107. resource 'CNTL' (228, purgeable) {
  108.     {70, 120, 90, 180},    0,
  109.     visible,    1,        0,    
  110.     16*button3D,
  111.     0,
  112.     "Gray"
  113. };
  114.  
  115. resource 'CNTL' (229, purgeable) {
  116.     {100, 10, 116, 180},    1,
  117.     visible,    1,        0,    
  118.     16*button3D+2, // radioButProc,
  119.     0,
  120.     "Radio Button 1"
  121. };
  122.  
  123. resource 'CNTL' (230, purgeable) {
  124.     {126, 10, 142, 180},    0,
  125.     visible,    1,        0,    
  126.     16*button3D+2, // radioButProc,
  127.     0,
  128.     "Radio Button 2"
  129. };
  130.  
  131. resource 'CNTL' (231, purgeable) {
  132.     {152, 10, 168, 180},    0,
  133.     visible,    1,        0,    
  134.     16*button3D+1, // checkBoxProc,
  135.     0,
  136.     "Show pushed buttons"
  137. };
  138.  
  139.  
  140. resource 'cctb' (223, purgeable) {
  141.     {
  142.         /* [1] */    cFrameColor, 0, 0, 52428,
  143.         /* [2] */    cTextColor, 0, 0, 52428,
  144.         /* [3] */    cBodyColor, 52428,-1,-1
  145.     }
  146. };
  147.  
  148. resource 'cctb' (224, purgeable) {
  149.     {
  150.         /* [1] */    cFrameColor, 61166, 0, 0,
  151.         /* [2] */    cTextColor, 61166, 0, 0,
  152.         /* [3] */    cBodyColor, -1,52428, 52428
  153.     }
  154. };
  155.  
  156. resource 'cctb' (225, purgeable) {
  157.     {
  158.         /* [1] */    cFrameColor, 0, 26214, 0,
  159.         /* [2] */    cTextColor, 0, 26214, 0,
  160.         /* [3] */    cBodyColor, 52428, -1, 52428
  161.     }
  162. };
  163.  
  164. resource 'cctb' (226, purgeable) {
  165.     {
  166.         /* [1] */    cFrameColor, 26214, 0, 26214,
  167.         /* [2] */    cTextColor, 26214, 0, 26214,
  168.         /* [3] */    cBodyColor, 52428, 52428, -1
  169.     }
  170. };
  171.  
  172. resource 'cctb' (227, purgeable) {
  173.     {
  174.         /* [1] */    cFrameColor, -1, 13107, 0,
  175.         /* [2] */    cTextColor, -1, 13107, 0,
  176.         /* [3] */    cBodyColor, -1, 52428, 39321
  177.     }
  178. };
  179.  
  180. resource 'cctb' (228, purgeable) {
  181.     {
  182.         /* [1] */    cFrameColor, 0, 0, 0,
  183.         /* [2] */    cTextColor, 0, 0, 0,
  184.         /* [3] */    cBodyColor, 56797, 56797, 56797
  185.     }
  186. };